<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/**
 * Created by PhpStorm.
 *
 * @Date: 2017-06-05
 * @Time: 12:45
 * @Author: cdkay
 * @Email: network@iyuanma.net
 *
 * @File： Index.php
 */
class Index extends CI_Controller
{
    public function __construct()
    {
        parent::__construct();
    }

    public function index()
    {
        echo 'index';
    }

    public function test()
    {
        $captch = new \Minho\Captcha\CaptchaBuilder();

        $captch->initialize([
            'width' => 150,     // 宽度
            'height' => 44,     // 高度
            'line' => false,    // 直线
            'curve' => true,    // 曲线
            'noise' => 1,       // 噪点背景
            'fonts' => []       // 字体
        ]);
        $captch->create();

        $captch->output(1);

        // $_SESSION['verify_code'] = $captch->getText();
    }
}
